import { View } from "../../../../mvc/core/View";
import { Language } from "../../../../../extend/language/Language";
import { AttWithValueItem } from "./AttWithValueItem";
import { Cache } from "../../../cache/Cache";
type int = number;
//class FashionBoxFlyWingAttributWithValueSP
    
    export  class FashionBoxFlyWingAttributWithValueSP extends View
    {
        constructor()
        {
            super();
            this._itemArr = [];
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            var loc2=null;
            var loc3=0;
            var loc1=Language.getString(70143).split(",");
            var loc4="";
            var loc5=0;
            while (loc5 < this._ITEMNUM) 
            {
                loc2 = new AttWithValueItem("");
                loc2.y = loc5 * 22;
                addChild(loc2);
                this._itemArr.push(loc2);
                ++loc5;
            }
            return;
        }

        public updateInfo(arg1: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=null;
            var loc2=0;
            while (loc2 < this._ITEMNUM) 
            {
                loc1 = this._itemArr[loc2] as AttWithValueItem;
                if (arg1) 
                {
                    loc1.setValueTx(arg1[Cache.instance.wardrobe.FlyWingAttArr[loc2]]);
                }
                else 
                {
                    loc1.setValueTx(0);
                }
                ++loc2;
            }
            return;
        }

        /* internal */ /* const */_ITEMNUM: int=5;

        /* internal */ /* var */_itemArr: Array<any>;
    }
